//
//  OneDetailCell.m
//  LvXingPai
//
//  Created by mafang on 16/8/11.
//  Copyright © 2016年 _Junxee. All rights reserved.
//

#import "OneDetailCell.h"

@interface OneDetailCell ()

@property (weak, nonatomic) IBOutlet UIImageView *coverImage;

@property (weak, nonatomic) IBOutlet UILabel *title;
@property (weak, nonatomic) IBOutlet UILabel *salesVolume;
@property (weak, nonatomic) IBOutlet UILabel *marketPrice;
@property (weak, nonatomic) IBOutlet UIImageView *rating;
@property (weak, nonatomic) IBOutlet UILabel *price;

@end

@implementation OneDetailCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setDetailModel:(DetailModel *)detailModel
{
    _detailModel = detailModel;
    [self.coverImage sd_setImageWithURL:[NSURL URLWithString:detailModel.coverImage] placeholderImage:[UIImage imageNamed:@"master_placeholder_bg"]];
    self.title.text = detailModel.title;
    self.salesVolume.text = [NSString stringWithFormat:@"%@已售",detailModel.salesVolume];
    self.marketPrice.text = [NSString stringWithFormat:@"¥%@",detailModel.marketPrice];
    self.price.text = [NSString stringWithFormat:@"¥%@起",detailModel.price];
    
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
